/**
 * 
 */
package com.gr.experimental.binding;

import com.gr.experimental.reasoner.FactoryCreationException;
import com.gr.experimental.reasoner.MEBNReasonerFactory;

/**
 * @author Karol Banczyk
 *
 */
public class AbstractMEBNReasonerFactory {

	public static MEBNReasonerFactory createFactory(String className) throws FactoryCreationException {
		
		try {
			Class<?> forName = Class.forName(className);
			// some checking
			
			return (MEBNReasonerFactory) forName.newInstance();
			
		} catch (Exception e) {
			throw new FactoryCreationException(e);
		}
		
	}
	
}
